package io;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;

public class BRDemo {
    public static void main(String[] args) throws IOException {
        String str1 = "./src/main/java/io/BRDemo.java";
        String str2 = "pw.txt";
        FileInputStream fis = new FileInputStream(str2);
        InputStreamReader isr = new InputStreamReader(fis);
        BufferedReader br = new BufferedReader(isr);
        String d;
        while ((d=br.readLine())!=null) {
            System.out.println(d);
        }
        br.close();
        isr.close();
        fis.close();
    }
}
